package cn.stylefeng.guns.modular.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * 订单退货表
 * @author allen
 * @date 2021/4/11 17:18
 * @version 1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "order_return_goods_apply")
public class OrderReturnGoodsApplyEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 订单ID
     */
    @TableField(value = "order_info_id")
    private Long orderInfoId;

    /**
     * 退货原因，1：质量不好，2：商品不满意，3：买错了，4：无理由退货
     */
    @TableField(value = "return_goods_reason")
    private Integer returnGoodsReason;

    /**
     * 退货备注
     */
    @TableField(value = "return_goods_comment")
    private String returnGoodsComment;

    /**
     * 退货记录状态，1：待审核，2：审核不通过，3：审核通过
     */
    @TableField(value = "return_goods_apply_status")
    private Integer returnGoodsApplyStatus;

    /**
     * 退货快递单号
     */
    @TableField(value = "return_goods_logistic_code")
    private String returnGoodsLogisticCode;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_ORDER_INFO_ID = "order_info_id";

    public static final String COL_RETURN_GOODS_REASON = "return_goods_reason";

    public static final String COL_RETURN_GOODS_COMMENT = "return_goods_comment";

    public static final String COL_RETURN_GOODS_APPLY_STATUS = "return_goods_apply_status";

    public static final String COL_RETURN_GOODS_LOGISTIC_CODE = "return_goods_logistic_code";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}